package pojo;

import java.util.Objects;

public class TbRecordDetail {
    private Integer recordDetailId;
    private Integer recordId;
    private Integer phonePriceDetailId;
    private TbPhoneRecord tbPhoneRecordByRecordId;
    private TbPhonePriceDetail tbPhonePriceDetailByPhonePriceDetailId;

    public Integer getRecordDetailId() {
        return recordDetailId;
    }

    public void setRecordDetailId(Integer recordDetailId) {
        this.recordDetailId = recordDetailId;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public Integer getPhonePriceDetailId() {
        return phonePriceDetailId;
    }

    public void setPhonePriceDetailId(Integer phonePriceDetailId) {
        this.phonePriceDetailId = phonePriceDetailId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbRecordDetail that = (TbRecordDetail) o;
        return Objects.equals(recordDetailId, that.recordDetailId) &&
                Objects.equals(recordId, that.recordId) &&
                Objects.equals(phonePriceDetailId, that.phonePriceDetailId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(recordDetailId, recordId, phonePriceDetailId);
    }

    public TbPhoneRecord getTbPhoneRecordByRecordId() {
        return tbPhoneRecordByRecordId;
    }

    public void setTbPhoneRecordByRecordId(TbPhoneRecord tbPhoneRecordByRecordId) {
        this.tbPhoneRecordByRecordId = tbPhoneRecordByRecordId;
    }

    public TbPhonePriceDetail getTbPhonePriceDetailByPhonePriceDetailId() {
        return tbPhonePriceDetailByPhonePriceDetailId;
    }

    public void setTbPhonePriceDetailByPhonePriceDetailId(TbPhonePriceDetail tbPhonePriceDetailByPhonePriceDetailId) {
        this.tbPhonePriceDetailByPhonePriceDetailId = tbPhonePriceDetailByPhonePriceDetailId;
    }
}
